<html>
<head>
<title>GetSample</title>
<link rel="stylesheet" href="../../../../../../Styles/Default.css" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<p class="Decl"><b>function</b> GetSampleInt(X, Y: Integer): <a href="../../../../GR32/Types/Color%20Types.htm">TColor32</a>; </p>
<p class="Decl"><b>function</b> GetSampleFixed(X, Y: <a href="../../../../GR32/Types/TFixed.htm">TFixed</a>): <a href="../../../../GR32/Types/Color%20Types.htm">TColor32</a>; </p>
<p class="Decl"><b>function</b> GetSampleFloat(X, Y: Single): <a href="../../../../GR32/Types/Color%20Types.htm">TColor32</a>; </p>
<h2>Description</h2>
<p class="Body"><span class="EmptyRef">GetSample</span> provides a method for acquiring a color sample from the coordinate (<span class="EmptyRef">X</span>, <span class="EmptyRef">Y</span>). The sample may be generated by the sampler itself, or it may be acquired from a <em>nested sampler</em>. Descendants of <a href="../../../../GR32/Classes/TCustomSampler/_Body.htm">TCustomSampler</a> must always override at least one of <span class="EmptyRef">GetSampleFixed</span> or <span class="EmptyRef">GetSampleFloat.</span></p>
<p class="Body">The different postfixes determines the precision of the input parameters (integer, fixed-point or floating-point).</p>
<p id="hidden">[See also]: </p>
</body>
</html>
